import request from '@/utils/request'

export function getAccountList(params) {
  return request(({
    url: '/account/list',
    method: 'get',
    params
  }))
}

export function register(params) {
  return request(({
    url: '/account/register',
    method: 'post',
    data: params
  }))
}

export function active(params) {
  return request(({
    url: '/account/active',
    method: 'get',
    params
  }))
}

export function init(params) {
  return request(({
    url: 'account/init',
    method: 'post',
    data: params
  }))
}

export function update(params) {
  return request(({
    url: 'account/update',
    method: 'post',
    data: params
  }))
}

export function remove(params) {
  return request(({
    url: 'account/remove',
    method: 'post',
    data: params
  }))
}
